package com.gzsxy.esjy.service.order.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;


import com.gzsxy.esjy.service.base.dto.response.OrderCountRsp;
import com.gzsxy.esjy.service.base.dto.response.OrderRsp;
import com.gzsxy.esjy.service.base.util.Page;
import com.gzsxy.esjy.service.order.entity.Order;
import com.gzsxy.esjy.service.order.entity.vo.OrderQueryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 订单
 * @date 2022/2/17 18:41
 */
@Repository
public interface OrderMapper extends BaseMapper<Order> {

    /**
     * @description: 分页查询订单
     * @param
     * @return
     */
    IPage<OrderRsp> getPageVo(Page<?> page, @Param("orderQueryVo") OrderQueryVo orderQueryVo);

    /**
     * @description: 订单数统计
     * @param 
     * @return 
     */
    List<OrderCountRsp> getOrderStatistical(@Param("day") String day);

    /**
     * @description: 统计订单各个状态数量
     * @param
     * @return
     */
    OrderCountRsp getStatusCount(@Param("userId") String userId);
}
